﻿namespace WebApi.Models;

/// <summary>
/// Contact model.
/// </summary>
public class Contact
{
    /// <summary>
    /// Constructor for Contact model.
    /// </summary>
    /// <param name="firstName"></param>
    /// <param name="lastName"></param>
    public Contact(string firstName,string lastName)
    {
        FirstName = firstName;
        LastName = lastName;
    }
    /// <summary>
    /// Unique identifier for the contact.
    /// </summary>
    public Guid Id { get; set; }
    /// <summary>
    /// First name of the contact.
    /// </summary>
    public string FirstName { get; set; }
    /// <summary>
    /// Last name of the contact.
    /// </summary>
    public string LastName { get; set; }
    /// <summary>
    /// Email address of the contact.
    /// </summary>
    public string? FullName => $"{FirstName} {LastName}";
}
